MPT.addTmpl('friend_visit', function(_data) {

    var html = [];
    html.push('<div class="contenter vst" id="contenter">');
    html.push('<div class="mpt a_friend_visit">');
    html.push('    <div class="leftside">');
    html.push('        <h2 class="hd" title="访问管理">访问管理</h2>');
    html.push('        <div class="bd">');
    html.push('            <a class="subnav e_visit_u active" title="谁来看过我">谁来看过我</a>');
    html.push('            <a class="subnav e_visit_me" title="我去看过谁">我去看过谁</a>');
    html.push('        </div>');
    html.push('    </div>');
    html.push('    <div class="rightside">');
    html.push('        <h2 class="hd e_title">最近访问过您的用户：</h2>');
    html.push('        <div class="bd clrfix e_friend_list">');
    html.push('        </div>');
    html.push('        <div class="bd clrfix e_my_list" style="display:none">');
    html.push('        </div>');
    html.push('        <div class="paging e_page">');
    html.push('        </div>');
    html.push('    </div>');
    html.push('</div>');
    html.push('</div>');

    return html.join('');

});

MPT.addTmpl('one_user', function(_data){
	var html = [];
    var uid = _data.visitorId;
	var send_time = Util.getFormatDateByLong(_data.visitTime, 'yyyy-MM-dd hh:mm');
    var is_online = Boolean(_data.isOnline);
    var is_friend = Boolean(_data.friend);
    var is_followed = Boolean(_data.followed);

    var space_path = Util.spacePath(uid);
    var image_path = Util.avatarPath(uid, 33);

    var online_icon = is_online ? "online" : "";
    var now_friend = is_friend ? "in_friend" : "add_friend";
    var now_friendTXT = is_friend ? "已好友" : "加好友";
    var now_followed = is_followed ? "in_attention" : "add_attention";
    var now_followedTXT = is_followed ? "已关注" : "加关注";

	html.push('            <div class="user e_user">');
	html.push('                <dl class="if">');
	html.push('                    <dt class="head"><a href="'+space_path+'"><img src="'+image_path+'" alt=""></a></dt>');
	html.push('                    <dd class="content">');
	html.push('                        <h3 class="name '+online_icon+'"><a href="'+space_path+'" title="'+_data.nickName+'">'+_data.nickName+'</a></h3>');
	html.push('                        <p class="txt">电信一区-傲视天下</p>');
	html.push('                        <p class="txt">'+send_time+'</p>');
	html.push('                    </dd>');
	html.push('                </dl>');
	html.push('                <p class="btn">');
	html.push('                    <a class="'+now_friend+' e_friend" href="javascript:;" title="'+now_friendTXT+'">'+now_friendTXT+'</a>');
	html.push('                    <a class="'+now_followed+' e_attention" href="javascript:;" title="'+now_followedTXT+'">'+now_followedTXT+'</a>');
	html.push('                    <a class="delete e_delete" href="javascript:;" title="删脚印">删脚印</a>');
	html.push('                </p>');
	html.push('            </div>');

	return html.join('');

});